﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using AutomationMLMapper.ViewModels.PaneViewModels;

namespace AutomationMLMapper.Controls.ConvertersAndTemplateSelectors
{
    class PanesStyleSelector: StyleSelector
    { 
        public Style SupportedRolesViewStyle
        {
            get;
            set;
        }

        public Style DifferentRolesViewStyle
        {
            get;
            set;
        }
        
        public override System.Windows.Style SelectStyle(object item, System.Windows.DependencyObject container)
        {
            if (item is SupportedRolesViewModel)
                return SupportedRolesViewStyle;

            if (item is DifferentRolesViewModel)
                return DifferentRolesViewStyle;
           
            return base.SelectStyle(item, container);
        }
    }
}
